package com.duck.duckchatbackend.annotation;

import com.duck.duckchatbackend.entity.dto.MessageSendDto;
import com.duck.duckchatbackend.entity.enums.UserContactTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD) //定义注解作用目标为方法级别
@Retention(RetentionPolicy.RUNTIME) //运行时有效
public @interface GlobalInterceptor {
   boolean checkLogin() default true;

   boolean checkAdmin() default false;
}

